"""
@author:menglei
@desc:修改商品sku价格
"""
from pdd.api.base import RestApi


class PddGoodsSkuPriceUpdateRequest(RestApi):
    """
    @:param: goods_id:LONG:商品id
    @:param: sku_price_list:OBJECT[]:待修改的sku价格
    @:param: is_onsale:INTEGER:sku上架状态，0-已下架，1-上架中
    @:param: single_price:LONG:单独购买价格（单位分）
    @:param: group_price:LONG:拼团购买价格（单位分）
    @:param: sku_id:LONG:sku标识
    @:param: market_price:LONG:市场价 （单位分）
    @:param: market_price_in_yuan:STRING:市场价 （单位元）
    @:param: sync_goods_operate:INTEGER:提交后上架状态，0:上架,1:保持原样
    """
    def __init__(self,domain='https://gw-api.pinduoduo.com'):
        RestApi.__init__(self, domain)
        self.goods_id = None
        self.sku_price_list = None
        self.is_onsale = None
        self.single_price = None
        self.group_price = None
        self.sku_id = None
        self.market_price = None
        self.market_price_in_yuan = None
        self.sync_goods_operate = None

    def getapiname(self):
        return 'pdd.goods.sku.price.update'